import { createRouter, createWebHistory } from 'vue-router';

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect: '/vuex',
    },

    {
      path: '/vuex',
      name: 'vuex',
      component: () => import('../views/VuexCores/index.vue'),
    },
    {
      path: '/pinia',
      name: 'pinia',
      component: () => import('../views/PiniaCores/index.vue'),
    },

    {
      path: '/canvas',
      name: 'canvas',
      component: () => import('../views/Canvas/index.vue'),
    },
  ],
});

export default router;
